package cn.fan.shirotoken.domian;



import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


import java.util.Set;


@Data
@TableName("user")
public class User {
    @TableId(type = IdType.AUTO)
    private Integer userId;

    private String username;
    private String password;

    @TableField(exist = false)
    private Set<Role> roles;


}
